﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
namespace AnyOffice.general.report.info
{
    public partial class user_list : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack && (((new UserCache().PrivId == new ConfigManager().AdministratorPrivId) ? 1 : 0) != 0))
            {
                this.pnlMain.Visible = true;
                DataTable table = new UsersDao().SelectDimission(base.Conn);
                if (table.Rows.Count > 0)
                {
                    this.rptUsers.DataSource = table;
                    this.rptUsers.DataBind();
                }
            }
        } 

    }
}
